package org.poem;

import org.poem.aware.AwareService;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;

/**
 * Created by poem on 2017/8/27.
 */
@SpringBootApplication
@ComponentScan(value = "org.poem")
public class Main {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext configApplicationContext = new AnnotationConfigApplicationContext(Main.class);
        AwareService service = configApplicationContext.getBean(AwareService.class);
        service.println();
        configApplicationContext.close();
    }
}
